﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000489 RID: 1161
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class EnterSwordTrainingExamScRsp : IMessage<EnterSwordTrainingExamScRsp>, IMessage, IEquatable<EnterSwordTrainingExamScRsp>, IDeepCloneable<EnterSwordTrainingExamScRsp>, IBufferMessage
	{
		// Token: 0x17000EF4 RID: 3828
		// (get) Token: 0x0600344A RID: 13386 RVA: 0x0008FC9F File Offset: 0x0008DE9F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<EnterSwordTrainingExamScRsp> Parser
		{
			get
			{
				return EnterSwordTrainingExamScRsp._parser;
			}
		}

		// Token: 0x17000EF5 RID: 3829
		// (get) Token: 0x0600344B RID: 13387 RVA: 0x0008FCA6 File Offset: 0x0008DEA6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return EnterSwordTrainingExamScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000EF6 RID: 3830
		// (get) Token: 0x0600344C RID: 13388 RVA: 0x0008FCB8 File Offset: 0x0008DEB8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return EnterSwordTrainingExamScRsp.Descriptor;
			}
		}

		// Token: 0x0600344D RID: 13389 RVA: 0x0008FCBF File Offset: 0x0008DEBF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterSwordTrainingExamScRsp()
		{
		}

		// Token: 0x0600344E RID: 13390 RVA: 0x0008FCC8 File Offset: 0x0008DEC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterSwordTrainingExamScRsp(EnterSwordTrainingExamScRsp other) : this()
		{
			this.battleInfo_ = ((other.battleInfo_ != null) ? other.battleInfo_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600344F RID: 13391 RVA: 0x0008FD14 File Offset: 0x0008DF14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterSwordTrainingExamScRsp Clone()
		{
			return new EnterSwordTrainingExamScRsp(this);
		}

		// Token: 0x17000EF7 RID: 3831
		// (get) Token: 0x06003450 RID: 13392 RVA: 0x0008FD1C File Offset: 0x0008DF1C
		// (set) Token: 0x06003451 RID: 13393 RVA: 0x0008FD24 File Offset: 0x0008DF24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneBattleInfo BattleInfo
		{
			get
			{
				return this.battleInfo_;
			}
			set
			{
				this.battleInfo_ = value;
			}
		}

		// Token: 0x17000EF8 RID: 3832
		// (get) Token: 0x06003452 RID: 13394 RVA: 0x0008FD2D File Offset: 0x0008DF2D
		// (set) Token: 0x06003453 RID: 13395 RVA: 0x0008FD35 File Offset: 0x0008DF35
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06003454 RID: 13396 RVA: 0x0008FD3E File Offset: 0x0008DF3E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as EnterSwordTrainingExamScRsp);
		}

		// Token: 0x06003455 RID: 13397 RVA: 0x0008FD4C File Offset: 0x0008DF4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(EnterSwordTrainingExamScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.BattleInfo, other.BattleInfo) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06003456 RID: 13398 RVA: 0x0008FD9C File Offset: 0x0008DF9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.battleInfo_ != null)
			{
				num ^= this.BattleInfo.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06003457 RID: 13399 RVA: 0x0008FDF1 File Offset: 0x0008DFF1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06003458 RID: 13400 RVA: 0x0008FDF9 File Offset: 0x0008DFF9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06003459 RID: 13401 RVA: 0x0008FE04 File Offset: 0x0008E004
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Retcode);
			}
			if (this.battleInfo_ != null)
			{
				output.WriteRawTag(98);
				output.WriteMessage(this.BattleInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600345A RID: 13402 RVA: 0x0008FE60 File Offset: 0x0008E060
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.battleInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.BattleInfo);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600345B RID: 13403 RVA: 0x0008FEB8 File Offset: 0x0008E0B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(EnterSwordTrainingExamScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.battleInfo_ != null)
			{
				if (this.battleInfo_ == null)
				{
					this.BattleInfo = new SceneBattleInfo();
				}
				this.BattleInfo.MergeFrom(other.BattleInfo);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600345C RID: 13404 RVA: 0x0008FF20 File Offset: 0x0008E120
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600345D RID: 13405 RVA: 0x0008FF2C File Offset: 0x0008E12C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 98U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.battleInfo_ == null)
						{
							this.BattleInfo = new SceneBattleInfo();
						}
						input.ReadMessage(this.BattleInfo);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04001487 RID: 5255
		private static readonly MessageParser<EnterSwordTrainingExamScRsp> _parser = new MessageParser<EnterSwordTrainingExamScRsp>(() => new EnterSwordTrainingExamScRsp());

		// Token: 0x04001488 RID: 5256
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001489 RID: 5257
		public const int BattleInfoFieldNumber = 12;

		// Token: 0x0400148A RID: 5258
		private SceneBattleInfo battleInfo_;

		// Token: 0x0400148B RID: 5259
		public const int RetcodeFieldNumber = 2;

		// Token: 0x0400148C RID: 5260
		private uint retcode_;
	}
}
